/**
 * 
 */
package remato.client.view.util;

import java.net.URL;

import org.eclipse.jface.text.Region;
import org.eclipse.jface.text.hyperlink.URLHyperlink;
import org.eclipse.ui.forms.events.HyperlinkAdapter;
import org.eclipse.ui.forms.events.HyperlinkEvent;

/**
 * @author petterei
 * @version $Id: URLHyperLinkListener.java,v 1.1 2006-03-07 19:45:51 petterei Exp $
 */
public class URLHyperLinkListener extends HyperlinkAdapter {
	/**
	 * @see org.eclipse.ui.forms.events.HyperlinkAdapter#linkActivated(org.eclipse.ui.forms.events.HyperlinkEvent)
	 */
	@Override
	public void linkActivated(HyperlinkEvent e) {
		URLHyperlink link = new URLHyperlink(new Region(0,0), ((URL)e.getHref()).toExternalForm());
		link.open();
	}
}
